var $ = require("../../utils/Ajax.js");
Page({
  data: {
    // 消息数据
    FansData: [],
  },

  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "我的粉丝"
    }) 
    $.Ajax("api/friends2","GET",{},function(res){
      if (res.s) {
        that.setData({
          FansData: res.d.users
        })
      } else {
        wx.showToast({
          title: res.m,
          icon: 'none',
          duration: 1500
        })
      }
    })
  },
  
  // 点击进入个人资料
  Data: function () {
    wx.navigateTo({
      url: '../Data/Data',
    })
  }
})